package ch03_singleton.hungry;


/**
 * 恶汉单列模式，老张只拥有一辆车
 *
 * @author guod
 * @version 1.0
 * @see Runtime（getRuntime方法）
 */
public class MainTest {
    public static void main(String[] args) {
        HungrySingleton car = HungrySingleton.getInstance();
        System.out.println(car.getClass());
        System.out.println(HungrySingleton.getInstance());
    }
}
